package com.qinsheng.domain.strategy.service.armory;

/**
* ClassName: IStrategyDispatch
* Description: 策略抽奖的调度
* @Author: qinsheng1900
* @Create 2025/2/26 09:53
* @Version 1.0
*/public interface IStrategyDispatch {
    /**
     * 输入要用的奖品策略，返回对应的奖品
     * @param strategyId
     * @return
     */
    Integer getRandomAwardId(Long strategyId);

    Integer getRandomAwardId(Long strategyId, String ruleWeightValue);

    /**
     * 根据 strategyId， awardId，扣减奖品缓存库存
     * @param strategyId
     * @param awardId
     * @return
     */
    Boolean subtractionAwardStock(Long strategyId, Integer awardId);
}
